package repository

import (
	"github.com/RaymondCode/simple-demo/entity/po"
	"gorm.io/gorm"
)

type Comment interface {
	// Insert 新增一条评论
	Insert(comment *po.Comment, tx *gorm.DB, isTx bool) error
	// QueryByConditionOrderByTime 按照条件查询评论
	QueryByConditionOrderByTime(comment *po.Comment) (*[]po.Comment, error)
	// UpdateByCondition 按照条件更新评论
	UpdateByCondition(comment *po.Comment, tx *gorm.DB, isTx bool) error
}
